package lab04.day20171221;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test03 {
    public static void main(String[] args) {
//正则表达式

        Matcher matcher= Pattern.compile
                ("Java(\\d+)级信本3班(\\d+)鲜琴实验3").matcher
                ("面向对象程序设计" +
                        "Java2016级信本3班1606101018鲜琴实验3");

        while (matcher.find()){
            System.out.println(matcher.group(1));
            System.out.println(matcher.group(2));
        }
    }


}
